Online Tests for Programming and protocol solving in C language

Programming and protocol solving in C language

Download Guruji24.com App on Google Play
  • 1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the "OMR" answer sheet supplied with the question paper, following instructions therein.


    Q - 1.1 . A program that coverts a high level language program to set of instructions that can run on a computer is called a

    Q - 1.2 . An external variable is one

    Q - 1.3 . Consider the following code snippet marks=80; switch(marks){case 60: grade='C'; break; case 70: grade='B'; break; case 80: grade='A'; break; default grade=E; } What is the value of 'grade' after the switch statement is executed?

    Q - 1.4 . Which type of errors are flagged by compilers?

    Q - 1.5 . which of these are reasons for using pointers?

    Q - 1.6 . Identify the most appropriate sentence to describe unions

    Q - 1.7 . The maximum value that an integer constant can have is

    Q - 1.8 . Give the following code fragment: int ch=20; printf("%d \t %d\n",++ch,ch); what will be the output of this code?

    Q - 1.9 . A complier is

    Q - 1.10 . How many times will the following loop be executed? Ch='b' while(ch>='a' && ch<='z')

    2. Each statement below is either TRUE or FALSE. Choose the most appropriate one and ENTER in the "OMR" answer sheet supplied with the question paper, following instructions therein.


    Q - 2.1 . A pointer variable can be at most two level deep.

    Q - 2.2 . The term head of the queue is same as the term front of the queue.

    Q - 2.3 . An array is a collection of variable of different data types scattered throughout memory.

    Q - 2.4 . Pointer expression are the expressions that evalute to an address value.

    Q - 2.5 . A union cannot be a member of a structure.

    Q - 2.6 . A file that is written to but not closed properly may lose data.

    Q - 2.7 . The mod operator(%) can operate on float data.

    Q - 2.8 . The C compiler generates an error if the subscript used for an array exceeds the size of the array.

    Q - 2.9 . The array index must be an integer data type.

    Q - 2.10 . A structure cannot be passed to a 'C' function through the call by value mechanism.

    3. Match words and phrases in column X with the closest related meaning/ word(s)/phrase(s) in column Y. Enter your selection in the "OMR" answer sheet supplied with the question paper, following instructions therein

    Question Select Answer
    3.1 5/2
    3.2 Put a break after the last case of a switch statement
    3.3 The Goto statement
    3.4 A loop that must be executed at least once
    3.5 Circular linked list
    3.6 Premature loop termination
    3.7 int *p[10]
    3.8 While(0)
    3.9 Queue
    3.10 The scope of a global variable is

    4. Each statement below has a blank space to fit one of the word(s) or phrase(s) in the list below. Enter your choice in the "OMR" answer sheet supplied with the question paper, following instructions therein.

    Question Select Answer
    4.1 In standard I/O, the function used to close a file is _________ .
    4.2 _______ is an example of escape sequence.
    4.3 The function call using pointers is known as call by _________ .
    4.4 The self-referential structures are used to implement_________.
    4.5 The unary operator ~can be used for performing _______ on a variable.
    4.6 _________ access of element in linked list is not possible.
    4.7 An _______ consists of one or more constants, variables, function calls or operations.
    4.8 A function that does not return anything has return type _______.
    4.9 A pointer to a variable declared as double accesses _______ bytes of memory.
    4.10 Right shifting an unsigned integer is equivalent to its _________by 2.